package com.hw.one.collect.param;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Copyright 2017 汉威.智慧环保事业部.
 * Created by 李亚坤 on 2017/04/10 14:20.
 */
public class SmallAirParam {
    private String SNCode;
    private String startTime;
    private String endTime;
    private List<String> factorList;
    private List<String> SNCodeList;

    public SmallAirParam() {
    }
    public SmallAirParam(String devices, String startTime, String endTime, String factors) {
        this.startTime = startTime;
        this.endTime = endTime;
        List<String> SNCodeList = new ArrayList<>();
        List<String> factorList = new ArrayList<>();
        String[] SNCodes = devices.split(",");
        String[] factors2 = factors.split(",");
        Collections.addAll(SNCodeList, SNCodes);
        Collections.addAll(factorList, factors2);
        this.SNCodeList = SNCodeList;
        this.factorList = factorList;
    }

    public List<String> getFactorList() {
        return factorList;
    }

    public void setFactorList(List<String> factorList) {
        this.factorList = factorList;
    }

    public String getSNCode() {
        return SNCode;
    }

    public void setSNCode(String SNCode) {
        this.SNCode = SNCode;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public List<String> getSNCodeList() {
        return SNCodeList;
    }

    public void setSNCodeList(List<String> SNCodeList) {
        this.SNCodeList = SNCodeList;
    }
}
